package com.whw.springboot.walk.service;

import com.whw.springboot.walk.entity.Lesson;
import com.whw.springboot.walk.entity.LessonNumber;
import com.whw.springboot.walk.entity.Message;
import org.springframework.web.multipart.MultipartFile;

import java.text.ParseException;
import java.util.List;


public interface LessonService {

    Message<?> addLesson(LessonNumber lessonNumber)throws ParseException;

    Message<?> deleteLessonByPrimaryKey(String lessonId);

    Message<List<Lesson>> selectAllLessonName();

    Message<List<Lesson>> selectAllTeacher();

    Message<Lesson> selectTeacherByLessonName(String lessonName);

    Message<Lesson> selectLessonNameByTeacher(String lessonTeacher);

    Message<?> updateLessonPersonNumByLessonName(LessonNumber lessonNumber);

    Message<List<Lesson>> selectLessonByLessonId(String lessonId);

    Message<?> updateLessonPersonNumByPK(String lessonId,String lessonPersonNum);

    int importLesson(MultipartFile file) throws Exception;
}
